//写strcpy函数,cp s1 to s2

#include <stdio.h>
#include <string.h>

void scpy(char s2[],char s1[])
{
	int i=0;
	while (s1[i]!='\0')
	{
		s2[i]=s1[i];
		i++;
	}
}

int main()
{
	
	char a[81] = "abcdefgh";
	char b[10] = "1234567";
	scpy(a,b);
	puts(a);

	return 0 ;
}

//diwutiantang@diwutiantang-VirtualBox:~/snap/lc/Dec/1219/zuoye$ ./7
//1234567h

